import { GET_CHANNEL } from '../actionsTypes'
const initValue = []
export default function channel (state = initValue, { type, payload }) {
  if (type === GET_CHANNEL) {
    return payload
  }
  return state
}
